<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>黑名单查询</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<s:url value="/css/a.css"/>" type="text/css"
	rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css"

	rel="stylesheet" />
	
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>
	<script type="text/javascript" src="/js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="/js/tabcontrol/TabPanel.js"></script>
	

<style>
　　　
　　　　　a {
	text-decoration: none
}

　　　　　a:hover {
	color: red;
	text-decoration: none
}

a:VISITED {
	color: red;
}
　　


　　　
</style>

<script type="text/javascript">

	$(document).ready(
			function() {
			
			$("#btnAdd").click(
			function(){
					      
				$("#queryForm").attr("action","${rootPath}/black/addJsp.ct");
				return true;
			});
			$("#export").click(function() {
						   	$("#queryForm").attr("action","<%=basePath%>/black/blackExport.ct");
						   	$("#queryForm").submit();   
						    return false;
							        
							
						});
			
	});
	

	
</script>



</head>

<body>

	<div class="subpage">
		<s:form id="queryForm" action="/black/queryBlack.ct" method="post"
			theme="simple">
			<div class="user_title">
				<h2 class="headline-inquires">
					POS收单运营管理平台<br />
					<span class="sub-title"></span>
				</h2>
			</div>
			<table width="100%" cellpadding="0" cellspacing="0" border="0"
				class="query_table">

				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">
							黑名单查询<br />
							<span class="sub-title"></span>
						</h2>

					</td>
				</tr>


				<tr>
					<td colspan="4">&nbsp;</td>
				</tr>

                <tr>
                    <td align="right" width="15%">银行卡号模糊查询：</td>
			    	<td align="left" colspan="1"><s:textfield id="acctNo"
							name="searchCondition.acctNo" cssClass="queryWidth" /></td>	 
				    <td align="right">证件号:</td>
				     <td align="left" colspan="1"><s:textfield id="cardNo"
							name="searchCondition.cardNo" cssClass="queryWidth" /></td>
				</tr>
				<tr>
					<td align="right">营业执照号：</td>
					<td align="left" colspan="1"><s:textfield id="licenseNo"
							name="searchCondition.licenseNo" cssClass="queryWidth" /></td>
					<td align="right">商户号：</td>
					<td align="left" colspan="1"><s:textfield id="mid"
							name="searchCondition.mid" cssClass="queryWidth" /></td>
				</tr>
				<tr>
					<td align="right">终端号：</td>
					<td align="left" colspan="1"><s:textfield id="termId"
							name="searchCondition.termId" cssClass="queryWidth" /></td>
					<td align="right" width="15%">黑名单类别：</td>
						<td width="35%"><s:select cssClass="queryWidth" id="addType" name="searchCondition.addType" list="#{'H1':'调单拒付','H2':'非法经营','H3':'套现嫌疑'}" headerKey="99" headerValue="--请选择--"/></td>
						
					
				</tr>
				
				<tr>
						<td colspan="4" align="center"><span style="font-color: red"><s:actionerror /></span>
							<span style="font-color: red;"><s:actionmessage /></span > <span style="font-color: red;"><s:fielderror
									cssClass="fieldError" /></span>
							<span id="otherError"></span>
						</td>
					</tr>
				<tr>
					<td colspan="4" align="center"><s:submit  value="查  询" />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<s:submit id="btnAdd" value="黑名单登记" />
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<s:reset value="取  消" /></td></tr>
				<tr>
				<tr><s:if test="#request.searchRsList != null && #request.searchRsList.size>0">
					<td colspan="4" align="center"><s:submit id="export" value="黑名单详情批量导出"/> </td>
					</s:if><s:else>
					<td colspan="4" align="center"><s:submit id="export" disabled="true" value="黑名单详情批量导出"/></td></s:else>	
				</tr>
				<tr>
					<td colspan="4">&nbsp;</td>
				</tr>
			</table>
			<table width="100%" cellpadding="0" cellspacing="0" border="0">

				<tr>
					<td colspan="4" align="center">
						<h2 class="headline-inquires">黑名单基本信息列表</h2>

					</td>
				</tr>
				<s:if
					test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr>
						<td align="left">&nbsp;&nbsp;&nbsp;&nbsp; <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/black/queryBlack.ct?currentPage=" />

						</td>
					</tr>
				</s:if>
			</table>
			<table id="tableList" width="100%" class="table">
				<thead>
					<tr>
						<th>银行卡号</th>
						<th>身份证号</th>
						<th>营业执照号</th>
						<th>商户号</th>
						<th>终端号</th>
						<th>拉黑类别</th>
						
						<th>解锁次数</th>
						<th>状态</th>
						<th>操作员</th>
						<th>加入时间</th>
						<th>更新时间</th>
						<th>备注</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="#request.blackList" status="stat" id="black">
							<tr class="<s:if test="#stat.index%2==0">tr_0</s:if>" >
							<td>  <s:property value="#black.acctNo"/></td>
							<td>  <s:property value="#black.cardNo"/></td>
							<td>  <s:property value="#black.licenseNo"/></td>
							<td> <s:property value="#black.mid"/>	</td>
							<td><s:property value="#black.termId"/></td>
							<td> <s:property value="#black.addType"/>	</td>
							<td><s:property value="#black.unlockTimes"/></td>
							<td> <s:if test="#black.isused==\"Y\"">启用</s:if>
							<s:elseif test="#black.isused==\"N\"">不启用</s:elseif></td>
							<td><s:property value="#black.operators"/></td>
							<td><s:property value="#black.dtCreate"/></td>
							<td><s:property value="#black.dtLastmod"/></td>
							<td><s:property value="#black.remark"/></td>
							
							<td><s:if test="#session.session_merchant.roleType=='12'|| #session.session_merchant.roleType=='00'|| #session.session_merchant.roleType=='01'">
							<s:if test="#black.isused==\"N\"">
							  <s:a href="startUsing.ct?black.acctNo=%{#black.acctNo}&black.cardNo=%{#black.cardNo}&black.licenseNo=%{#black.licenseNo}">启用</s:a></s:if>
							<s:elseif test="#black.isused==\"Y\"">
							 <s:a href="NoStartUsing.ct?black.acctNo=%{#black.acctNo}&black.cardNo=%{#black.cardNo}&black.licenseNo=%{#black.licenseNo}">释放</s:a></s:elseif>
							<s:else>&nbsp;</s:else></s:if></tr>
						</s:iterator>
				</tbody>
			</table>
		</s:form>
	</div>
	<s:if test="#request.info_request !=null">
	<script language="javascript">
	    alert("${request.info_request}");
	    </script>
	</s:if>	
</body>
</html>
